﻿
using System.Collections.Generic;
using System;
using System.Collections;
using System.Diagnostics;
namespace devtm.Aop.Event
{

    [Serializable]
    [DebuggerStepThrough]
    public class ContainerProperties
    {


        public ContainerProperties()
        {
        }

        public ContainerProperties(int key)
        {
            this.Key = key;
        }

        public int Key { get; set; }


        public void Add(string name, object value)
        {
            _dic.Add(name, value);
        }

        public bool Contains(string name)
        {
            return _dic.ContainsKey(name);
        }

        public object Get(string name)
        {
            return _dic[name];
        }

        public object TryGet(string name)
        {
            if (_dic.ContainsKey(name))
                return _dic[name];

            return null;

        }

        private Hashtable _dic = new Hashtable();

    }
}

